import router  from "~/router";
export const HeaderNavigate = (flag) =>{
    let homePage = sessionStorage.getItem("homePage");
    if(!homePage){
        homePage = "/index.html#";
    }
   
    // console.log(flag);
    if(flag == "home"){
        homePage = homePage + "/home";
    }else if(flag == "message"){
        homePage = homePage + "/chat/index";
    }else if(flag == "book"){
        homePage = homePage + "/book/index";
    }else if(flag == "wait"){
        homePage = homePage + "/wait";
    }else if(flag == "application"){

        homePage = homePage + "/application";
    }

    location.href = homePage;
};